<template>
    <div class="list-group-item">
       <p>{{item.content}}</p>
       <div class="clearfix">
           <p class="pull-left">
                评论人:{{item.author}}
            </p>
            <p class="pull-right">
                评论时间:{{item.posttime}}
            </p>
       </div>
       <div class="clearfix">
           <button @click="delHandle(item.id)" class="btn btn-xs btn-danger pull-right">删除</button>
       </div>
    </div>
</template>
<script>
export default{
    data(){
        return {
            
        }
    },
    props:['item'],
    methods:{
        delHandle(id){
            this.$emit('delComment',id)
        }
    }
}
</script>
<style scoped lang="css">

</style>